﻿<UserControl xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  x:Class="WebberCross.JavaScriptBridge.JSBridgeDemoApp.JSBridgeDemoView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:vm="clr-namespace:WebberCross.JavaScriptBridge.JSBridgeDemoApp.ViewModels"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../Styles/MVVMStyle.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    
    <UserControl.DataContext>
        <vm:JSBridgeDemoViewModel />
    </UserControl.DataContext>

    <Grid x:Name="LayoutRoot" Style="{StaticResource bgStyle}" >
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>            
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="60" />
            <RowDefinition Height="60" />
            <RowDefinition Height="60" />
            <RowDefinition Height="60" />
            <RowDefinition Height="*" />

        </Grid.RowDefinitions>
        
        <TextBlock Style="{StaticResource headerStyle}" Text="Silverlight 4.0" />
        <TextBlock Style="{StaticResource normalStyle}" Grid.Row="1" Text="Silverlight Application - MVVM Pattern" />
        <TextBlock Style="{StaticResource normalStyle}" Grid.Row="2" Text="{Binding Path=Text, Mode=OneWay}" />
        <Button Grid.Row="3" Content="Call JS Bridge from Silverlight App" Width="200" Command="{Binding Path=SendCommand}" />
    </Grid>   

</UserControl>
